package com.bwie.vo;

import com.bwie.utils.R;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;
import java.io.Serializable;

@Data
public class LoginVo implements Serializable {
    /**
     * 账号
     */
    @NotBlank(message = "登录账号不能为空")
    @Size(min = 6, message = "登录账号最小长度不能小于六位")
    private String userName;

    /**
     * 密码
     */
    @NotBlank(message = "登录密码不能为空")
    @Pattern(regexp = "^(?=.*\\d)(?=.*[a-z])(?=.*[A-Z])[a-zA-Z0-9]{6,}$", message = "登录密码最小是6位并且包含数字和字母")
    private String userPass;


}
